package pers.richard.ormybatis.bean.mapping;

import pers.richard.ormybatis.bean.AbstractDomain;

/**
 * 基础Mapping参数bean
 */
public class BaseMappingBean extends AbstractDomain {
	protected final static String[] UPDATE_FIELD_PROPERTY = {"updateTime", "updateDate" ,"gmtModified", "stampDate"};
	
	protected final static String[] CREATE_FIELD_PROPERTY = {"createTime", "createDate" ,"gmtCreate", "inputDate"};
	
	/**
	 * 表名
	 */
	private String tableName;
	
	/**
	 * 主键字段名
	 */
	private String primaryKeyName;	
	
	public BaseMappingBean() {}
	
	public BaseMappingBean(String tableName, String primaryKeyName) {
		this.tableName = tableName;
		this.primaryKeyName = primaryKeyName;
	}
    
	public String getTableName() {return tableName;}
	public void setTableName(String tableName) {this.tableName = tableName;}
	
	public String getPrimaryKeyName() {return primaryKeyName;}
	public void setPrimaryKeyName(String primaryKeyName) {this.primaryKeyName = primaryKeyName;}
    
}